import Vue from 'vue';
import Router from 'vue-router';
import Layout from '../components/layout/Layout';
import index from '../components/master/index';
import TemplateList from '../components/master/TemplateList';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'layout',
      component: Layout,
      children: [
        {
          path: 'index',
          name: 'index',
          component: index
        },
        {
          path: 'templateList',
          name: 'templateList',
          component: TemplateList
        }
      ]
    }
  ]
});
